package com.ydd.controller.admin;

import com.ydd.dto.MenuDTO;
import com.ydd.result.Result;
import com.ydd.vo.MenuVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.models.auth.In;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description TODO
 * @Author Shadow
 * @Date 2023-05-02 16:53
 */
@RestController
@Api(tags = "工作台相关接口")
@RequestMapping("/sys_menu")
@Slf4j
public class SySmenuController {

    @PostMapping("/update")
    @ApiOperation("更新菜单接口")
    public Result<String> updateMenus(MenuDTO menuDTO)
    {

        return Result.success();
    }

    @GetMapping("/del")
    @ApiOperation("删除接口")
    public Result<String> delMenus(Integer id)
    {

        return Result.success();
    }

    @GetMapping("/allData")
    @ApiOperation("获得所有菜单接口")
    public Result<MenuVO> allMeanuData()
    {

      return null;
    }
}
